//
//  AddHospitalCell.m
//  Doctor
//
//  Created by 阳光 on 16/9/29.
//  Copyright © 2016年 阳光. All rights reserved.
//

#import "AddHospitalCell.h"

@implementation AddHospitalCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self)
    {
        
        self.hospitalBtn=[[UIButton alloc]initWithFrame:CGRectMake(0,0,(APPW-40)/3,30)];
        [self addSubview:self.hospitalBtn];
        ViewBorderRadius(self.hospitalBtn,kmargin/5,1,ClearColor);
       
        // 删除按钮的实现
        self.deleteBtn=[UIButton buttonWithType:UIButtonTypeCustom];
        [self.deleteBtn setImage:[UIImage imageNamed:@"icon_find_phone_del"] forState:UIControlStateNormal];
        [self.hospitalBtn addSubview:self.deleteBtn];
        [self.deleteBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.hospitalBtn.frame.size.width-10);
            make.size.mas_equalTo(CGSizeMake(10,10));
            make.right.mas_equalTo(0);
            make.top.mas_equalTo(0);
        }];
        
    }
    return self;
}

@end
